package com.ygqh.baby.service;

import java.util.List;

import com.ygqh.baby.ao.GroupType;
import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.po.YgGroup;

public interface YgGroupService {

	List<YgGroup> find();

	int findCount();

	YgGroup findById(Long id);

	int deleteSoft(Long[] ids);

	int deleteSoft(Long id);

	int save(YgGroup ygGroup);

	int update(YgGroup ygGroup);

	int saveOrUpdate(YgGroup ygGroup);

	ResultSet<YgGroup> search(QueryInfo queryInfo, Long supplierId, String q, GroupType groupType, Boolean isGroup);

	int findName(String name, Long id, GroupType groupType);

	List<YgGroup> find(GroupType groupType, Long supplierId);

	void updatePromotion(YgGroup group);

	List<YgGroup> findByCategoryId(Long categoryId);

}
